package com.xx.dao.impl;

import com.xx.dao.GoodsDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository("goodsDao2")
public class GoodsDao2Impl implements GoodsDao {
    //获取数据
    @Value("${name2}")
    private String name2;
    @Value("${price2}")
    private int price2;
    @Value("${description}")
    private String description;

    public void showGoodsDetail() {
        System.out.println(name2+"   "+price2+"   "+description);
    }
}
